#include "mystdio.h"
#include <unistd.h>
int main()
{
    const char* filename = "log.txt";
    const char* s = "hello world\n";
    _FILE* fp = _fopen(filename, "a");
    int cnt = 10;
    while(cnt--)
    {
        _fwrite(fp, s, strlen(s));
        sleep(1);
    }
    _fclose(fp);

    return 0;
}
